package com.OjSystem.system.service.questionservice.impl;

import com.OjSystem.system.domain.question.DO.QuestionDO;
import com.OjSystem.system.domain.question.DTO.AddQuestionDTO;
import com.OjSystem.system.domain.question.DTO.QuestionDTO;
import com.OjSystem.system.domain.question.VO.QuestionVO;
import com.OjSystem.system.mapper.questionmapper.QuestionMapper;
import com.OjSystem.system.service.questionservice.IQuestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class QuestionServiceImpl implements IQuestionService {

    @Autowired
    private QuestionMapper questionMapper;

    /**
     * 获取题目列表
     * @param questionDTO
     * @return
     */
    @Override
    public List<QuestionDO> getQuestionList(QuestionDTO questionDTO) {
        return questionMapper.getQuestionList(questionDTO);
    }


    /**
     * 添加题目
     * @param addQuestionDTO
     * @return
     */
    @Override
    public boolean addQuestion(AddQuestionDTO addQuestionDTO) {
        return false;
    }
}
